import 'package:flutter/material.dart';

class MyApp4 extends StatelessWidget {
  const MyApp4({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        // 1.1 导航
        appBar: AppBar(
          backgroundColor: Colors.pink,
          title: const Text('Text组件'),
        ),
        // 1.2 主体部分
        body: Center(
            child: Container(
          width: 300,
          height: 300,
          color: Colors.orange,
          child: Image.asset('qiche.png'),
          // child: Image.network(
          //     'https://pica.zhimg.com/v2-7e1f27b84477d93d21db4b19ff964276_b.webp'),
        )));
  }
}
